<template>
  <div class="child">
    <h3>这里是子组件</h3>
    <slot :data="data"></slot>
    <slot name="slot2" :data="data2"></slot>
    <slot name="slot3" :dataX="data3"></slot>
  </div>
</template>

<script>
export default {
  data: function() {
    return {
      data: ["zhangsan", "lisi", "wanwu", "zhaoliu", "tianqi", "xiaoba"],
      data2: ["1", "2", "3", "4", "5", "6"],
      data3: {
        "a":'aaaa',
        "b":'bbbb'
      }
    };
  }
};
</script>
